<template>
  <div class="discover">
    <div class="top">
      <div class="top-menu wrap-v1">
        <div 
          class="item"
          v-for="item in dicoverMenu"
          :key="item.title"
        >
          <router-link :to="item.link">{{ item.title }}</router-link>
        </div>
      </div>
    </div>

    <!-- 发现音乐下的子路由出口 -->
    <router-view />
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

import { dicoverMenu } from "@/common/local-data";

export default defineComponent({  
  setup() {

    return {
      dicoverMenu
    }
  }
})
</script>

<style lang="less" scoped>
@import './index.less';
</style>